package Inherit.inheritance;

import java.time.LocalDate;

public class Manager extends Employee{
    private double bounds;


    /**
     * @param name the employees's name
     * @param salary the salary
     * @param year the hire year
     * @param month the hire month
     * @param day the hire day
     */
    public Manager(String name, double salary, int year, int month, int day) {
        super(name, salary, year, month, day);
        bounds=0;
    }

    public void setBounds(double bounds) {
        this.bounds = bounds;
    }

    public double getSalary(){
        double baseSalary=super.getSalary();
        return baseSalary+bounds;
    }
}
